import { ref } from "vue";
import { ActionTypeEnum } from "@/enums/actionTypeEnum";
export const useBranchModal = () => {
  const actionType = ref<ActionTypeEnum>(ActionTypeEnum.ADD);
  const modalShowFlag = ref(false);

  const handleShowModal = () => {
    modalShowFlag.value = true;
  };

  const handleHideModal = () => {
    modalShowFlag.value = false;
  };

  return { actionType, modalShowFlag, handleShowModal, handleHideModal };
};
